#/bin/sh

# 系统支持ipip模块，加载
modprobe ipip

# 配置VPI tunl0

# 关闭ipv4转发
[root@ulife3test network-scripts]# echo '0'>/proc/sys/net/ipv4/ip_forward

ifconfig tunl0 192.168.152.127 netmask 255.255.255.255 up

# 配置tunl0 arp抑制
[root@ulife3test network-scripts]# vim /etc/sysctl.conf                #加入以下行
net.ipv4.conf.tunl0.arp_ignore = 1
net.ipv4.conf.tunl0.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.tunl0.rp_filter = 0
net.ipv4.conf.all.rp_filter = 0

# 永久生效
[root@ulife3test network-scripts]# sysctl -p     
